package cn.digitalize.generate.modular.basic.mapper;

import cn.digitalize.generate.modular.basic.entity.CodeGenerateBasic;
import cn.digitalize.generate.modular.basic.result.MysqlColumnResult;
import cn.digitalize.generate.modular.basic.result.MysqlTableResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Created by ZhangCheng on 2023/06/09 (代码生成基础配置)
 */
public interface CodeGenerateBasicMapper extends BaseMapper<CodeGenerateBasic> {

    /**
     * 查询Mysql数据表所有字段
     *
     * @param tableName
     * @return
     */
    List<MysqlColumnResult> queryMysqlColumnResult(@Param("tableName") String tableName);

    /**
     * 查询Mysql所有数据表信息
     *
     * @return
     */
    List<MysqlTableResult> queryMysqlTableResult();
}
